//package com.webservice;
//
//import com.webservice.server1.TestWebService1;
//import org.apache.cxf.Bus;
//import org.apache.cxf.jaxws.EndpointImpl;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.xml.ws.Endpoint;
//
///**
// * 描述：webservice 配置类
// * * @author caojing
// *
// * @create 2020-02-14-14:47
// */
//@Configuration
//public class Config {
//    @Autowired
//    private TestWebService1 testWebService1;
//
//    @Autowired
//    private Bus bus;
//
//    @Bean(name = "TestWebService1")
//    public Endpoint TestWebService1() {
//        EndpointImpl endpoint = new EndpointImpl(bus, testWebService1);
//        endpoint.publish("/TestWebService1");
//        return endpoint;
//    }
//    //* 此方法被注释后:wsdl访问地址为http://127.0.0.1:8080/services/user?wsdl
//    //  去掉注释后：wsdl访问地址为：http://127.0.0.1:8080/webservice/user?wsdl
////    @Bean(name = "cxfServlet")
////    public ServletRegistrationBean cxfServlet() {
////        return new ServletRegistrationBean(new CXFServlet(), "/webservice/*");
////    }
//
//
//}